/*
 * redmicro all Copyright (c)
 * Created by seeker910 on 2014/7/28.
 */
Rsd.define('Rsd.Faith.stores.SchemaStore', {
    extend: 'Rsd.data.Cache',
    xtype: 'schemaStore',
    /*
    * true：单例模式，全局只创建一个存储实例对象
    * */
    singleton:true,
    cache:true,
    keyName:'modeltype',
    constructor: function (config) {
        config = config || {};
        Rsd.apply(this, config);
        this.proxy = Rsd.app.getService('Dev.GetSchema');
    },
    /*
   *
   * */
    getSchema:function getSchema(modeltype,callback) {
        this.get(modeltype,{modeltype:modeltype},callback);
    }

});
